// 没做持久化处理
/* import IndexRouter from './router/IndexRouter'
import { Provider } from 'react-redux'
import './App.css'
import store from './redux/store'
function App() {
  return <Provider store={store}>
    <IndexRouter></IndexRouter>
  </Provider>
}
export default App
 */

// 做了持久化处理
import IndexRouter from './router/IndexRouter'
import { Provider } from 'react-redux'
import './App.css'
import { store, persistor } from './redux/store'
import { PersistGate } from 'redux-persist/integration/react'

function App() {
  return (
    <Provider store={store}>
      <PersistGate loading={null} persistor={persistor}>
        <IndexRouter></IndexRouter>
      </PersistGate>
    </Provider>
  )
}
export default App
